<?php

/*
 * This is for setting up language cookie.
 */
$language = $_GET['lang'];
switch ($language) {
    case 'EN':
        setcookie('lang', '0', time() + 60000);
        header('Location:index');
        break;

    case 'IT':
        setcookie('lang', '1', time() + 60000);
        header('Location:index');
        break;
    
    case 'FR' :
        setcookie('lang', '4',  time()+60000);
        header('Location:index');
        break;

    default:
        break;
}
?>
